package com.vf.cloud.common.util;

import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;

public class DateUtil {
	
	
	public static LocalDateTime getLocalDateTime() {
	    Instant instant = Instant.ofEpochMilli(System.currentTimeMillis());
	    ZoneId zone = ZoneId.systemDefault();
	    return LocalDateTime.ofInstant(instant, zone);
	}
	
	public static LocalDateTime getDateTimeOfTimestamp(long timestamp) {
	    Instant instant = Instant.ofEpochMilli(timestamp);
	    ZoneId zone = ZoneId.systemDefault();
	    return LocalDateTime.ofInstant(instant, zone);
	}

}
